/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.src.uniandes.ecos.tsp.creditscore.algorithm;

import com.src.uniandes.ecos.tsp.creditscore.entity.ClienteProducto;
import com.src.uniandes.ecos.tsp.creditscore.entity.HistorialCrediticio;
import com.src.uniandes.ecos.tsp.creditscore.jpa.ClienteProductoJpaController;
import com.src.uniandes.ecos.tsp.creditscore.jpa.HistorialCrediticioJpaController;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author AndhyMao
 */
public class CreditScoreAlgorithm {

    public static double calculateCreditScore (Integer codigo){
        RulesPaymentHistory rulesPaymentHistory = new RulesPaymentHistory();
        PaymentHistory paymentHistory = new PaymentHistory();
        double pointsPaymentsOnTime;
        pointsPaymentsOnTime = paymentHistory.getPointsPaymentHistory(codigo);
        
        return 0.1;
    }

    public static void main (String args[]){
        double resultado = calculateCreditScore(new Integer(80795472));
    }
}
